<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html">
    <h:head>
        <title>Submit Purchase Order</title>
    </h:head>
    <h:body>
        Enter the quotation ID that you were given.
        Click button to add items to this purchase order.

        <p></p>
        <h:form id="addNewPurchaseOrderForm">
            <h:outputText style="font-weight: bold" value="Quotation ID: " />
            <h:inputText required="true" requiredMessage="Field is required." id="quotationId" value="#{purchaseOrderBean.quotationId}"/>
            <br></br>
            <h:commandButton action="addPurchaseOrderItem.xhtml" value="Add Purchase Order Item" actionListener="#{purchaseOrderBean.addNewPurchaseOrder}" />
            
            <p></p><h:commandLink action="index.xhtml" value="Return back to Index page"/>
        </h:form></h:body>  
</ui:composition>
